package com.qianji.service;

import com.qianji.pojo.ActiveDto;
import com.qianji.pojo.TurntableDto;
import com.qianji.utils.Result;
import com.qianji.vo.ActiveAddVO;
import com.qianji.vo.ActiveUpdateVO;

/**
 * Created by 阳家桂 on 2021/3/12 15:35
 */
public interface ActiveService {
    /**
     * 添加活动
     * @param activeAddVO
     * @return
     */
    Integer addActive(ActiveAddVO activeAddVO);

    /**
     * 根据id删除活动
     * @param id
     * @return
     */
    Integer deletActiveById(String id);

    /**
     * 关闭或开启活动
     * @param
     * @return
     */
    Integer onOff(String id);

    /**
     * 查询所有活动
     * @return
     */
    Result selectAll(ActiveDto activeDto);

    /**
     *  修改活动
     * @param activeUpdateVO
     * @return
     */
    Integer updateActive(ActiveUpdateVO activeUpdateVO);

    /**
     * 根据活动id查询
     * @param id
     * @return
     */
    ActiveDto selectById(Long id);

    ActiveDto smashEggs(Long id);

    TurntableDto turntable(Long id);

    String findTurntable(Long id);

}
